package com.bah.tract.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author 524506
 */
@Entity
@Table(name = "work_store")
@Inheritance(strategy = InheritanceType.JOINED)
public class WorkStore {
	private String label;

	@Transient
	public String getType() {
		return this.getClass().getSimpleName();
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	private String description;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @uml.property name="id"
	 */
	private long id;

	/**
	 * @return
	 * @uml.property name="id"
	 */
	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	/**
	 * @param id
	 * @uml.property name="id"
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @uml.property name="required"
	 */
	private boolean required;

	/**
	 * @return
	 * @uml.property name="required"
	 */
	public boolean isRequired() {
		return required;
	}

	/**
	 * @param required
	 * @uml.property name="required"
	 */
	public void setRequired(boolean required) {
		this.required = required;
	}
}
